﻿ 
using System.Xml;
using System.Xml.Serialization;

namespace In.Api.Dto.Notify
{
    /// <summary>
    /// 通知响应
    /// </summary>
    [XmlRoot(ElementName = "result")]
    public class Response4Notification
    {
        /// <summary>
        /// 通知结果编号，0为成功，其他失败
        /// </summary>
        [XmlElement(ElementName = "resultCode")]
        public string ResultCode { get; set; }
        /// <summary>
        /// 结果描述
        /// </summary>
        [XmlElement(ElementName = "resultDesc")]
        public string ResultDesc { get; set; }

        ///// <summary>
        ///// 返回数据
        ///// </summary>
        //[XmlElement(ElementName = "responseInfo")]
        //public string ResponseInfo { get; set; }


        [XmlElement(ElementName = "responseInfo")]
        public Response4NotificationSubResponseInfo ResponseInfo { get; set; }

    }

    //[XmlRoot(ElementName = "responseInfo")]
    public class Response4NotificationSubResponseInfo 
    {
        [XmlElement(ElementName = "refundId")]
        public string RefundId { get; set; }

        [XmlElement(ElementName = "refundTime")]
        public string RefundTime { get; set; }

        [XmlElement(ElementName = "codeUrl")]
        public string CodeUrl { get; set; }
        [XmlElement(ElementName = "aliCodeUrl")]
        public string AliCodeUrl { get; set; }
        [XmlElement(ElementName = "orderId")]
        public string OrderId { get; set; }
        [XmlElement(ElementName = "status")]
        public string Status { get; set; }

        [XmlElement(ElementName = "transactionId")]
        public string TransactionId { get; set; }

        [XmlElement(ElementName = "transactionTime")]
        public string TransactionTime { get; set; }
    }
}
